package com.bonc;


import org.junit.Test;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {


    public static String getNowDate() {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(new Date());
    }

    @Test
    public void test() {
        System.out.println(new Date());
    }


}
